{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>noticeAddAlter</title>
    <link rel="stylesheet" href="{% static 'css/noticeAddAlter.css' %}">
</head>
<body>
    {% if notice %}
        <h1>修改公告信息——公告序号：{{ notice.notice_id }}</h1>
    {% else %}
        <h1>添加公告信息</h1>
    {% endif %}
    <form method="post" action="">
        {% csrf_token %}
        {% if notice %}
            <input type="hidden" name="notice_id" value="{{ notice.notice_id }}">
        {% endif %}
        {% if not notice %}
            <input type="text" name="notice_id" placeholder="公告序号" required>
        {% endif %}
        <input type="hidden" name="form_id" value="AddAlter">
        <input type="hidden" name="admId_id" value="{{ admdd.adm_id }}">
        <input type="text" name="notice_title" placeholder="公告标题" required>
        <textarea name="notice_content" placeholder="公告内容" required></textarea>
        <input type="date" name="notice_date" placeholder="公告日期" required>
        <input type="submit" value="提交">
    </form>
    <a href="/adm_index">返回</a>
</body>
</html>